/*******************************************************************************
 * Copyright (C) 2013 Jeremy Brodt and Kevin Gillespie
 * Description: Distance Sensor Interface
 *         $Id: dist.h 5 2013-12-18 04:48:03Z brodtj1212@gmail.com $
 *******************************************************************************
 */

#ifndef _DIST_H_
#define _DIST_H_

/***** Definitions *****/
#define NUM_SENSORS   3

#define SENSOR_ADDR_BASE    (0xE0 >> 1)
#define SENSOR_ADDR(sensor) (SENSOR_ADDR_BASE + (sensor))

/***** Global Data *****/
extern int dist_mode;
extern int16_t distance[];

/***** Function Prototypes *****/
int dist_init(void);
int dist_task(void);
int dist_set_id(int curr_id, int new_id);
void dist_log_display(void);

#endif /* _DIST_H_ */
